const common = require('./webpack.common')
const { merge } = require('webpack-merge')
const webpack = require('webpack')


module.exports = merge(common, {
    mode: 'development',
    devServer: {
        hotOnly: true,
        open: true,
        contentBase: './public'
    },
    devtool: 'cheap-module-eval-source-map',
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
        new webpack.DefinePlugin({
            BASE_URL: JSON.stringify('./')
        })
    ]
})